<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: fsl_spi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fsl__spi_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">fsl_spi.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2015, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used tom  endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef _FSL_SPI_H_</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define _FSL_SPI_H_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;fsl_common.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment"> * Definitions</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment"> ******************************************************************************/</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#define FSL_SPI_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) </span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#define SPI_DUMMYDATA (0xFFU)</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="group__spi.html#ga3fa79a6717ea4e1e74de2dadaa468edd">   50</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__spi.html#ga3fa79a6717ea4e1e74de2dadaa468edd">_spi_status</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda703abdf7900047c4d13536480f3463ab">   52</a></span>&#160;    <a class="code" href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda703abdf7900047c4d13536480f3463ab">kStatus_SPI_Busy</a> = MAKE_STATUS(<a class="code" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977">kStatusGroup_SPI</a>, 0), </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda4e32c5b06dccaf4b81e2fd1679e1b560">   53</a></span>&#160;    <a class="code" href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda4e32c5b06dccaf4b81e2fd1679e1b560">kStatus_SPI_Idle</a> = MAKE_STATUS(<a class="code" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977">kStatusGroup_SPI</a>, 1), </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda2ff91d774e93aed936b87ffaa18aaf9e">   54</a></span>&#160;    <a class="code" href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda2ff91d774e93aed936b87ffaa18aaf9e">kStatus_SPI_Error</a> = MAKE_STATUS(<a class="code" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977">kStatusGroup_SPI</a>, 2) </div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;};</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__spi.html#ga3e5a7cd043c9596779bc23b34cb3d1f9">   58</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_clock_polarity</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;{</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__spi.html#gga3e5a7cd043c9596779bc23b34cb3d1f9a031c0ee2693cf1fd621e8b8cba676629">   60</a></span>&#160;    <a class="code" href="group__spi.html#gga3e5a7cd043c9596779bc23b34cb3d1f9a031c0ee2693cf1fd621e8b8cba676629">kSPI_ClockPolarityActiveHigh</a> = 0x0U, </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="group__spi.html#gga3e5a7cd043c9596779bc23b34cb3d1f9acfc8257079c9604086622df6de326aea">   61</a></span>&#160;    <a class="code" href="group__spi.html#gga3e5a7cd043c9596779bc23b34cb3d1f9acfc8257079c9604086622df6de326aea">kSPI_ClockPolarityActiveLow</a>          </div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;} <a class="code" href="group__spi.html#ga3e5a7cd043c9596779bc23b34cb3d1f9">spi_clock_polarity_t</a>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__spi.html#ga9ad313685ade497f5cbcb71c74a1b4dc">   65</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_clock_phase</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="group__spi.html#gga9ad313685ade497f5cbcb71c74a1b4dcad15d61c6fd642f13101edbf401d0c72e">   67</a></span>&#160;    <a class="code" href="group__spi.html#gga9ad313685ade497f5cbcb71c74a1b4dcad15d61c6fd642f13101edbf401d0c72e">kSPI_ClockPhaseFirstEdge</a> = 0x0U, </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group__spi.html#gga9ad313685ade497f5cbcb71c74a1b4dca18a98985c1f7dd56175e4a2724db3675">   69</a></span>&#160;    <a class="code" href="group__spi.html#gga9ad313685ade497f5cbcb71c74a1b4dca18a98985c1f7dd56175e4a2724db3675">kSPI_ClockPhaseSecondEdge</a>        </div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;} <a class="code" href="group__spi.html#ga9ad313685ade497f5cbcb71c74a1b4dc">spi_clock_phase_t</a>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="group__spi.html#gaa68518c16202382c2e1f1c7c66a9d53d">   74</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_shift_direction</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;{</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group__spi.html#ggaa68518c16202382c2e1f1c7c66a9d53dae7b997e8cff761aab865cbd42c4c3989">   76</a></span>&#160;    <a class="code" href="group__spi.html#ggaa68518c16202382c2e1f1c7c66a9d53dae7b997e8cff761aab865cbd42c4c3989">kSPI_MsbFirst</a> = 0x0U, </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group__spi.html#ggaa68518c16202382c2e1f1c7c66a9d53da20ac53684c3e1ad338553cecbfab94a9">   77</a></span>&#160;    <a class="code" href="group__spi.html#ggaa68518c16202382c2e1f1c7c66a9d53da20ac53684c3e1ad338553cecbfab94a9">kSPI_LsbFirst</a>         </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;} <a class="code" href="group__spi.html#gaa68518c16202382c2e1f1c7c66a9d53d">spi_shift_direction_t</a>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group__spi.html#ga2e5a238c65f35a2d82cc1c55927030fe">   81</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_ss_output_mode</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;{</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030fea3825177650b5d4bfb5dc603f0ce41381">   83</a></span>&#160;    <a class="code" href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030fea3825177650b5d4bfb5dc603f0ce41381">kSPI_SlaveSelectAsGpio</a> = 0x0U,         </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030feafdcbdc624d6c2f057147e2aa3cae4635">   84</a></span>&#160;    <a class="code" href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030feafdcbdc624d6c2f057147e2aa3cae4635">kSPI_SlaveSelectFaultInput</a> = 0x2U,     </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030fead724fc04589d03b524ef2dfef6b0f4a1">   85</a></span>&#160;    <a class="code" href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030fead724fc04589d03b524ef2dfef6b0f4a1">kSPI_SlaveSelectAutomaticOutput</a> = 0x3U </div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;} <a class="code" href="group__spi.html#ga2e5a238c65f35a2d82cc1c55927030fe">spi_ss_output_mode_t</a>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="group__spi.html#gab55fee4d636428392047e3355f33a36f">   89</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_pin_mode</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;{</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="group__spi.html#ggab55fee4d636428392047e3355f33a36fa7ba3d5ffce8458f91a9594e7ffe2b32d">   91</a></span>&#160;    <a class="code" href="group__spi.html#ggab55fee4d636428392047e3355f33a36fa7ba3d5ffce8458f91a9594e7ffe2b32d">kSPI_PinModeNormal</a> = 0x0U, </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="group__spi.html#ggab55fee4d636428392047e3355f33a36fad778c9cc9e3d5a5c4e8061793cf50fdc">   92</a></span>&#160;    <a class="code" href="group__spi.html#ggab55fee4d636428392047e3355f33a36fad778c9cc9e3d5a5c4e8061793cf50fdc">kSPI_PinModeInput</a> = 0x1U,  </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="group__spi.html#ggab55fee4d636428392047e3355f33a36fad5b79c8eba688dbfb4b9973348521de7">   94</a></span>&#160;    <a class="code" href="group__spi.html#ggab55fee4d636428392047e3355f33a36fad5b79c8eba688dbfb4b9973348521de7">kSPI_PinModeOutput</a> = 0x3U  </div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;} <a class="code" href="group__spi.html#gab55fee4d636428392047e3355f33a36f">spi_pin_mode_t</a>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="group__spi.html#gaa7bfe75c1f0ea3b349f19a3de19b24e4">   99</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_data_bitcount_mode</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;{</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="group__spi.html#ggaa7bfe75c1f0ea3b349f19a3de19b24e4a1a0723fd8cd73f361ca2770ad74a6324">  101</a></span>&#160;    <a class="code" href="group__spi.html#ggaa7bfe75c1f0ea3b349f19a3de19b24e4a1a0723fd8cd73f361ca2770ad74a6324">kSPI_8BitMode</a> = 0x0U, </div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="group__spi.html#ggaa7bfe75c1f0ea3b349f19a3de19b24e4a740c43589ebe839f3adc77b8ca484ea4">  102</a></span>&#160;    <a class="code" href="group__spi.html#ggaa7bfe75c1f0ea3b349f19a3de19b24e4a740c43589ebe839f3adc77b8ca484ea4">kSPI_16BitMode</a>        </div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;} <a class="code" href="group__spi.html#gaa7bfe75c1f0ea3b349f19a3de19b24e4">spi_data_bitcount_mode_t</a>;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__spi.html#gaedd690a0f91a0a9eb0fd573b57e31f67">  106</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__spi.html#gaedd690a0f91a0a9eb0fd573b57e31f67">_spi_interrupt_enable</a></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;{</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67aa317b77c827ed1462b766dddd93f7f10">  108</a></span>&#160;    <a class="code" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67aa317b77c827ed1462b766dddd93f7f10">kSPI_RxFullAndModfInterruptEnable</a> = 0x1U, </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67abe157750a1660d839a66197c56ac5096">  109</a></span>&#160;    <a class="code" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67abe157750a1660d839a66197c56ac5096">kSPI_TxEmptyInterruptEnable</a> = 0x2U,       </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a95cc9167ada10046534dc22549c6a99e">  110</a></span>&#160;    <a class="code" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a95cc9167ada10046534dc22549c6a99e">kSPI_MatchInterruptEnable</a> = 0x4U,         </div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a081a753d8d51b97b289103c698703537">  112</a></span>&#160;    <a class="code" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a081a753d8d51b97b289103c698703537">kSPI_RxFifoNearFullInterruptEnable</a> = 0x8U,   </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a299b7d97e4106d57bf06a6654ce4f3dd">  113</a></span>&#160;    <a class="code" href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a299b7d97e4106d57bf06a6654ce4f3dd">kSPI_TxFifoNearEmptyInterruptEnable</a> = 0x10U, </div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif                                           </span><span class="comment">/* FSL_FEATURE_SPI_HAS_FIFO */</span><span class="preprocessor"></span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;};</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__spi.html#gaea776f478792865a85b7311e6ff5896c">  118</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__spi.html#gaea776f478792865a85b7311e6ff5896c">_spi_flags</a></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896cacc0e5c67e296cc20197afaca46f22953">  120</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896cacc0e5c67e296cc20197afaca46f22953">kSPI_RxBufferFullFlag</a> = SPI_S_SPRF_MASK,   </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca9c24fe83960ed64638f06eeb17643da5">  121</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca9c24fe83960ed64638f06eeb17643da5">kSPI_MatchFlag</a> = SPI_S_SPMF_MASK,          </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca07934a27954d951831e7cdb96c39afd7">  122</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca07934a27954d951831e7cdb96c39afd7">kSPI_TxBufferEmptyFlag</a> = SPI_S_SPTEF_MASK, </div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca9eca4e759c879e3b264d052c234a09d1">  123</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca9eca4e759c879e3b264d052c234a09d1">kSPI_ModeFaultFlag</a> = SPI_S_MODF_MASK,      </div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca840b49c37a729e29d6c144650f31dc88">  125</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca840b49c37a729e29d6c144650f31dc88">kSPI_RxFifoNearFullFlag</a> = SPI_S_RNFULLF_MASK,  </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca85cc9ec1f4395db09fc288e293e5dcb1">  126</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca85cc9ec1f4395db09fc288e293e5dcb1">kSPI_TxFifoNearEmptyFlag</a> = SPI_S_TNEAREF_MASK, </div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca1ad600ec61b202731d386c7abcb15feb">  127</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca1ad600ec61b202731d386c7abcb15feb">kSPI_RxFifoFullFlag</a> = SPI_S_TXFULLF_MASK,      </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca275d9a4cd902b8cb484c4b00635a3060">  128</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca275d9a4cd902b8cb484c4b00635a3060">kSPI_TxFifoEmptyFlag</a> = SPI_S_RFIFOEF_MASK,     </div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896cab1d47ff1dc06aa27a41cf90715f203aa">  129</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896cab1d47ff1dc06aa27a41cf90715f203aa">kSPI_TxFifoError</a> = SPI_CI_TXFERR_MASK &lt;&lt; 8U,   </div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca46b6a3bffe664d731bfbfa38f24a5797">  130</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca46b6a3bffe664d731bfbfa38f24a5797">kSPI_RxFifoError</a> = SPI_CI_RXFERR_MASK &lt;&lt; 8U,   </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca553c7d65e38657565d1818fdfddd600e">  131</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca553c7d65e38657565d1818fdfddd600e">kSPI_TxOverflow</a> = SPI_CI_TXFOF_MASK &lt;&lt; 8U,     </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca92f9ace674410eacc7f5a1bdbbdac23c">  132</a></span>&#160;    <a class="code" href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca92f9ace674410eacc7f5a1bdbbdac23c">kSPI_RxOverflow</a> = SPI_CI_RXFOF_MASK &lt;&lt; 8U      </div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif                                             </span><span class="comment">/* FSL_FEATURE_SPI_HAS_FIFO */</span><span class="preprocessor"></span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;};</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="group__spi.html#gad61329dc7edac1f4ef75e0746e08b3d1">  138</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_w1c_interrupt</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;{</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1a1ee9a347a93f3a74a8c72786747f2a22">  140</a></span>&#160;    <a class="code" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1a1ee9a347a93f3a74a8c72786747f2a22">kSPI_RxFifoFullClearInterrupt</a> = SPI_CI_SPRFCI_MASK,    </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1adc9f4730672a8501f0ae14b25f044567">  141</a></span>&#160;    <a class="code" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1adc9f4730672a8501f0ae14b25f044567">kSPI_TxFifoEmptyClearInterrupt</a> = SPI_CI_SPTEFCI_MASK,  </div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1af3a8b77f84cf2406ed1365e02e74fa8a">  142</a></span>&#160;    <a class="code" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1af3a8b77f84cf2406ed1365e02e74fa8a">kSPI_RxNearFullClearInterrupt</a> = SPI_CI_RNFULLFCI_MASK, </div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1ac5358e4b6907d9db9ec2eb5122f1e15c">  143</a></span>&#160;    <a class="code" href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1ac5358e4b6907d9db9ec2eb5122f1e15c">kSPI_TxNearEmptyClearInterrupt</a> = SPI_CI_TNEAREFCI_MASK </div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;} <a class="code" href="group__spi.html#gad61329dc7edac1f4ef75e0746e08b3d1">spi_w1c_interrupt_t</a>;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="group__spi.html#ga9a479127a2051ded7945115657adc162">  147</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_txfifo_watermark</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;{</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="group__spi.html#gga9a479127a2051ded7945115657adc162a9349658226a7cb7eb0629ae38853030d">  149</a></span>&#160;    <a class="code" href="group__spi.html#gga9a479127a2051ded7945115657adc162a9349658226a7cb7eb0629ae38853030d">kSPI_TxFifoOneFourthEmpty</a> = 0, </div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="group__spi.html#gga9a479127a2051ded7945115657adc162a1460af596f3d1a6a2bbedd9624975ed5">  150</a></span>&#160;    <a class="code" href="group__spi.html#gga9a479127a2051ded7945115657adc162a1460af596f3d1a6a2bbedd9624975ed5">kSPI_TxFifoOneHalfEmpty</a> = 1    </div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;} <a class="code" href="group__spi.html#ga9a479127a2051ded7945115657adc162">spi_txfifo_watermark_t</a>;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="group__spi.html#ga79f862820ec2bcbb8184ce9de72949a6">  154</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _spi_rxfifo_watermark</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;{</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="group__spi.html#gga79f862820ec2bcbb8184ce9de72949a6ad045f28c12abb7d7c9c69f067d03efb2">  156</a></span>&#160;    <a class="code" href="group__spi.html#gga79f862820ec2bcbb8184ce9de72949a6ad045f28c12abb7d7c9c69f067d03efb2">kSPI_RxFifoThreeFourthsFull</a> = 0, </div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="group__spi.html#gga79f862820ec2bcbb8184ce9de72949a6aa10222f6949d379dfaf8f408bbb87c42">  157</a></span>&#160;    <a class="code" href="group__spi.html#gga79f862820ec2bcbb8184ce9de72949a6aa10222f6949d379dfaf8f408bbb87c42">kSPI_RxFifoOneHalfFull</a> = 1       </div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;} <a class="code" href="group__spi.html#ga79f862820ec2bcbb8184ce9de72949a6">spi_rxfifo_watermark_t</a>;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FSL_FEATURE_SPI_HAS_FIFO */</span><span class="preprocessor"></span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_DMA_SUPPORT) &amp;&amp; FSL_FEATURE_SPI_HAS_DMA_SUPPORT</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="group__spi.html#ga8ab1fba361ce972e7e249ba1ea318e20">  163</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__spi.html#ga8ab1fba361ce972e7e249ba1ea318e20">_spi_dma_enable_t</a></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;{</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20a0bbf1c58480329e906e2b80a05121cc5">  165</a></span>&#160;    <a class="code" href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20a0bbf1c58480329e906e2b80a05121cc5">kSPI_TxDmaEnable</a> = SPI_C2_TXDMAE_MASK,                        </div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20a0addd2d49971cb0f0caa057510f5d9f1">  166</a></span>&#160;    <a class="code" href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20a0addd2d49971cb0f0caa057510f5d9f1">kSPI_RxDmaEnable</a> = SPI_C2_RXDMAE_MASK,                        </div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20aa157e1fb5d95f1488f6f03fb4baaa7f2">  167</a></span>&#160;    <a class="code" href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20aa157e1fb5d95f1488f6f03fb4baaa7f2">kSPI_DmaAllEnable</a> = (SPI_C2_TXDMAE_MASK | SPI_C2_RXDMAE_MASK) </div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;};</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FSL_FEATURE_SPI_HAS_DMA_SUPPORT */</span><span class="preprocessor"></span></div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="group__spi.html">  172</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>_spi_master_config</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;{</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="group__spi.html#ab8b96ba3ced8b280ac1f366f6e76a9e7">  174</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__spi.html#ab8b96ba3ced8b280ac1f366f6e76a9e7">enableMaster</a>;               </div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="group__spi.html#a9b8027e0bd0a21915f56155fdc08c5fc">  175</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__spi.html#a9b8027e0bd0a21915f56155fdc08c5fc">enableStopInWaitMode</a>;       </div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="group__spi.html#ad5743b187f5dda0c1786a192ba11b043">  176</a></span>&#160;    <a class="code" href="group__spi.html#ga3e5a7cd043c9596779bc23b34cb3d1f9">spi_clock_polarity_t</a> <a class="code" href="group__spi.html#ad5743b187f5dda0c1786a192ba11b043">polarity</a>;   </div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="group__spi.html#af7cf10baeb58ef18f8d18ef7022d43d8">  177</a></span>&#160;    <a class="code" href="group__spi.html#ga9ad313685ade497f5cbcb71c74a1b4dc">spi_clock_phase_t</a> <a class="code" href="group__spi.html#af7cf10baeb58ef18f8d18ef7022d43d8">phase</a>;         </div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="group__spi.html#ae8f40fc982ba997f08e6a1fe1fe8fd8c">  178</a></span>&#160;    <a class="code" href="group__spi.html#gaa68518c16202382c2e1f1c7c66a9d53d">spi_shift_direction_t</a> <a class="code" href="group__spi.html#ae8f40fc982ba997f08e6a1fe1fe8fd8c">direction</a>; </div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_16BIT_TRANSFERS) &amp;&amp; FSL_FEATURE_SPI_16BIT_TRANSFERS</span></div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="group__spi.html#ac19bf21df94096b28f0cf83f277a91b0">  180</a></span>&#160;    <a class="code" href="group__spi.html#gaa7bfe75c1f0ea3b349f19a3de19b24e4">spi_data_bitcount_mode_t</a> <a class="code" href="group__spi.html#ac19bf21df94096b28f0cf83f277a91b0">dataMode</a>; </div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor">#endif                                 </span><span class="comment">/* FSL_FEATURE_SPI_16BIT_TRANSFERS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="group__spi.html#af7e84b7c37b316924205ce9d9f0ec685">  183</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__spi.html#af7e84b7c37b316924205ce9d9f0ec685">enableFifoInterruptClear</a>;      </div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="group__spi.html#ab4b6047acff1c6e74f90b6e75492295a">  184</a></span>&#160;    <a class="code" href="group__spi.html#ga9a479127a2051ded7945115657adc162">spi_txfifo_watermark_t</a> <a class="code" href="group__spi.html#ab4b6047acff1c6e74f90b6e75492295a">txWatermark</a>; </div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="group__spi.html#a0190e6775edf2ecbae497859f514760f">  185</a></span>&#160;    <a class="code" href="group__spi.html#ga79f862820ec2bcbb8184ce9de72949a6">spi_rxfifo_watermark_t</a> <a class="code" href="group__spi.html#a0190e6775edf2ecbae497859f514760f">rxWatermark</a>; </div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#endif                                  </span><span class="comment">/* FSL_FEATURE_SPI_HAS_FIFO */</span><span class="preprocessor"></span></div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="group__spi.html#a285cf929f1817b37a10f2afffc810ac8">  187</a></span>&#160;    <a class="code" href="group__spi.html#ga2e5a238c65f35a2d82cc1c55927030fe">spi_ss_output_mode_t</a> <a class="code" href="group__spi.html#a285cf929f1817b37a10f2afffc810ac8">outputMode</a>;    </div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="group__spi.html#ab929baca49507045ca23069da9bbe3ba">  188</a></span>&#160;    <a class="code" href="group__spi.html#gab55fee4d636428392047e3355f33a36f">spi_pin_mode_t</a> <a class="code" href="group__spi.html#ab929baca49507045ca23069da9bbe3ba">pinMode</a>;             </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="group__spi.html#aa5df547b4cb95d3c959373cf6fa672b5">  189</a></span>&#160;    uint32_t <a class="code" href="group__spi.html#aa5df547b4cb95d3c959373cf6fa672b5">baudRate_Bps</a>;              </div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;} <a class="code" href="group__spi.html#structspi__master__config__t">spi_master_config_t</a>;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="group__spi.html">  193</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>_spi_slave_config</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;{</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="group__spi.html#a9189d8f6438ba99548837da162213c46">  195</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__spi.html#a9189d8f6438ba99548837da162213c46">enableSlave</a>;                </div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="group__spi.html#a9b8027e0bd0a21915f56155fdc08c5fc">  196</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__spi.html#a9b8027e0bd0a21915f56155fdc08c5fc">enableStopInWaitMode</a>;       </div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="group__spi.html#ad5743b187f5dda0c1786a192ba11b043">  197</a></span>&#160;    <a class="code" href="group__spi.html#ga3e5a7cd043c9596779bc23b34cb3d1f9">spi_clock_polarity_t</a> <a class="code" href="group__spi.html#ad5743b187f5dda0c1786a192ba11b043">polarity</a>;   </div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="group__spi.html#af7cf10baeb58ef18f8d18ef7022d43d8">  198</a></span>&#160;    <a class="code" href="group__spi.html#ga9ad313685ade497f5cbcb71c74a1b4dc">spi_clock_phase_t</a> <a class="code" href="group__spi.html#af7cf10baeb58ef18f8d18ef7022d43d8">phase</a>;         </div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="group__spi.html#ae8f40fc982ba997f08e6a1fe1fe8fd8c">  199</a></span>&#160;    <a class="code" href="group__spi.html#gaa68518c16202382c2e1f1c7c66a9d53d">spi_shift_direction_t</a> <a class="code" href="group__spi.html#ae8f40fc982ba997f08e6a1fe1fe8fd8c">direction</a>; </div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_16BIT_TRANSFERS) &amp;&amp; FSL_FEATURE_SPI_16BIT_TRANSFERS</span></div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="group__spi.html#ac19bf21df94096b28f0cf83f277a91b0">  201</a></span>&#160;    <a class="code" href="group__spi.html#gaa7bfe75c1f0ea3b349f19a3de19b24e4">spi_data_bitcount_mode_t</a> <a class="code" href="group__spi.html#ac19bf21df94096b28f0cf83f277a91b0">dataMode</a>; </div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">#endif                                 </span><span class="comment">/* FSL_FEATURE_SPI_16BIT_TRANSFERS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="group__spi.html#af7e84b7c37b316924205ce9d9f0ec685">  204</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__spi.html#af7e84b7c37b316924205ce9d9f0ec685">enableFifoInterruptClear</a>;      </div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="group__spi.html#ab4b6047acff1c6e74f90b6e75492295a">  205</a></span>&#160;    <a class="code" href="group__spi.html#ga9a479127a2051ded7945115657adc162">spi_txfifo_watermark_t</a> <a class="code" href="group__spi.html#ab4b6047acff1c6e74f90b6e75492295a">txWatermark</a>; </div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="group__spi.html#a0190e6775edf2ecbae497859f514760f">  206</a></span>&#160;    <a class="code" href="group__spi.html#ga79f862820ec2bcbb8184ce9de72949a6">spi_rxfifo_watermark_t</a> <a class="code" href="group__spi.html#a0190e6775edf2ecbae497859f514760f">rxWatermark</a>; </div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#endif                                  </span><span class="comment">/* FSL_FEATURE_SPI_HAS_FIFO */</span><span class="preprocessor"></span></div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;} <a class="code" href="group__spi.html#structspi__slave__config__t">spi_slave_config_t</a>;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="group__spi.html">  211</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>_spi_transfer</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;{</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="group__spi.html#a03c054bb486fb65133eb9f6849266fb1">  213</a></span>&#160;    uint8_t *<a class="code" href="group__spi.html#a03c054bb486fb65133eb9f6849266fb1">txData</a>; </div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="group__spi.html#ab83c0e07099df7beb8e491cb91914de0">  214</a></span>&#160;    uint8_t *<a class="code" href="group__spi.html#ab83c0e07099df7beb8e491cb91914de0">rxData</a>; </div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="group__spi.html#a78f9703861dd365a513c2c5aab9f9239">  215</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="group__spi.html#a78f9703861dd365a513c2c5aab9f9239">dataSize</a>; </div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="group__spi.html#a773b39d480759f67926cb18ae2219281">  216</a></span>&#160;    uint32_t <a class="code" href="group__spi.html#a773b39d480759f67926cb18ae2219281">flags</a>;  </div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;} <a class="code" href="group__spi.html#structspi__transfer__t">spi_transfer_t</a>;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__spi.html#struct__spi__master__handle">_spi_master_handle</a> spi_master_handle_t;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">  222</a></span>&#160;<span class="keyword">typedef</span> spi_master_handle_t <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a>;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="group__spi.html#ga75d9df6e4614756d8ff1bd6f86ca2235">  225</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group__spi.html#ga75d9df6e4614756d8ff1bd6f86ca2235">spi_master_callback_t</a>)(SPI_Type *base, spi_master_handle_t *handle, <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, <span class="keywordtype">void</span> *<a class="code" href="group__spi.html#a2e294dd14122c554baa0665072b4ca7a">userData</a>);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="group__spi.html#ga13fbc3110c56c1d312e4a5ebed07d679">  228</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group__spi.html#ga13fbc3110c56c1d312e4a5ebed07d679">spi_slave_callback_t</a>)(SPI_Type *base, <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a> *handle, <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> status, <span class="keywordtype">void</span> *<a class="code" href="group__spi.html#a2e294dd14122c554baa0665072b4ca7a">userData</a>);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="group__spi.html">  231</a></span>&#160;<span class="keyword">struct </span><a class="code" href="group__spi.html#struct__spi__master__handle">_spi_master_handle</a></div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;{</div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="group__spi.html#ab56d8f300582ce9d7f4a79729124739d">  233</a></span>&#160;    uint8_t *<span class="keyword">volatile</span> <a class="code" href="group__spi.html#ab56d8f300582ce9d7f4a79729124739d">txData</a>;         </div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="group__spi.html#aa58335de5bfa8923228432b62ea9308a">  234</a></span>&#160;    uint8_t *<span class="keyword">volatile</span> <a class="code" href="group__spi.html#aa58335de5bfa8923228432b62ea9308a">rxData</a>;         </div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="group__spi.html#a554cc5b5619072f7256a7f7cc1f2bcdb">  235</a></span>&#160;    <span class="keyword">volatile</span> <span class="keywordtype">size_t</span> <a class="code" href="group__spi.html#a554cc5b5619072f7256a7f7cc1f2bcdb">txRemainingBytes</a>; </div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="group__spi.html#aa7189218ccadddcc71ad7de6b758f01a">  236</a></span>&#160;    <span class="keyword">volatile</span> <span class="keywordtype">size_t</span> <a class="code" href="group__spi.html#aa7189218ccadddcc71ad7de6b758f01a">rxRemainingBytes</a>; </div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="group__spi.html#a47e491dc6b16e7a86f4396620f4bb704">  237</a></span>&#160;    <span class="keyword">volatile</span> uint32_t <a class="code" href="group__spi.html#a47e491dc6b16e7a86f4396620f4bb704">state</a>;          </div><div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="group__spi.html#a10e6d1f095e525fa85ffe957081ed7a7">  238</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="group__spi.html#a10e6d1f095e525fa85ffe957081ed7a7">transferSize</a>;              </div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="group__spi.html#a91e259e32d8fb8a07db35bb933c2b6a4">  239</a></span>&#160;    uint8_t <a class="code" href="group__spi.html#a91e259e32d8fb8a07db35bb933c2b6a4">bytePerFrame</a>;             </div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="group__spi.html#a3585201b190b39d2d702daa9192323a3">  240</a></span>&#160;    uint8_t <a class="code" href="group__spi.html#a3585201b190b39d2d702daa9192323a3">watermark</a>;                </div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="group__spi.html#a080452bbb72856f9fc2e834d6537d9ff">  241</a></span>&#160;    <a class="code" href="group__spi.html#ga75d9df6e4614756d8ff1bd6f86ca2235">spi_master_callback_t</a> <a class="code" href="group__spi.html#a080452bbb72856f9fc2e834d6537d9ff">callback</a>;   </div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="group__spi.html#a2e294dd14122c554baa0665072b4ca7a">  242</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="group__spi.html#a2e294dd14122c554baa0665072b4ca7a">userData</a>;                   </div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;};</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="comment"> * APIs</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="comment"> ******************************************************************************/</span></div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga45c08fc078ae334b79fb844379140838">SPI_MasterGetDefaultConfig</a>(<a class="code" href="group__spi.html#structspi__master__config__t">spi_master_config_t</a> *config);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga3fe5b421b088cc98222b8a214069574b">SPI_MasterInit</a>(SPI_Type *base, <span class="keyword">const</span> <a class="code" href="group__spi.html#structspi__master__config__t">spi_master_config_t</a> *config, uint32_t srcClock_Hz);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#gac000b63ed033f57a9eee342a8c8e67f2">SPI_SlaveGetDefaultConfig</a>(<a class="code" href="group__spi.html#structspi__slave__config__t">spi_slave_config_t</a> *config);</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga91b214b5392fc8d5b73a5ebadc5ca363">SPI_SlaveInit</a>(SPI_Type *base, <span class="keyword">const</span> <a class="code" href="group__spi.html#structspi__slave__config__t">spi_slave_config_t</a> *config);</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#gaac0bc2b87ea2eb7eeba78d9449d4dbbf">SPI_Deinit</a>(SPI_Type *base);</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="group__spi.html#gaae5df847701d3171c2e6787b33e2f1ed">  346</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#gaae5df847701d3171c2e6787b33e2f1ed">SPI_Enable</a>(I2C_Type *base, <span class="keywordtype">bool</span> enable)</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;{</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="keywordflow">if</span> (enable)</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    {</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        base-&gt;C1 |= SPI_C1_SPE_MASK;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    }</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    {</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        base-&gt;C1 &amp;= ~SPI_C1_SPE_MASK;</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    }</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;}</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;uint32_t <a class="code" href="group__spi.html#gaaa5a317a68b409dfe20397b45e48d1f0">SPI_GetStatusFlags</a>(SPI_Type *base);</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div><div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="group__spi.html#ga57d32103b22e375efde0d1a392f125ea">  385</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga57d32103b22e375efde0d1a392f125ea">SPI_ClearInterrupt</a>(SPI_Type *base, uint32_t mask)</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;{</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    base-&gt;CI |= mask;</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;}</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FSL_FEATURE_SPI_HAS_FIFO */</span><span class="preprocessor"></span></div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#gac12d144816080c40ca86d762e31aacc4">SPI_EnableInterrupts</a>(SPI_Type *base, uint32_t mask);</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga1c3de83156f45d3f91540a1ec5f92826">SPI_DisableInterrupts</a>(SPI_Type *base, uint32_t mask);</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_DMA_SUPPORT) &amp;&amp; FSL_FEATURE_SPI_HAS_DMA_SUPPORT</span></div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div><div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="group__spi.html#ga552ce373bfe655a37a22c26fdb071e0b">  439</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga552ce373bfe655a37a22c26fdb071e0b">SPI_EnableDMA</a>(SPI_Type *base, uint32_t mask, <span class="keywordtype">bool</span> enable)</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;{</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <span class="keywordflow">if</span> (enable)</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    {</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        base-&gt;C2 |= mask;</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    }</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    {</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;        base-&gt;C2 &amp;= ~mask;</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    }</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;}</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FSL_FEATURE_SPI_HAS_DMA_SUPPORT */</span><span class="preprocessor"></span></div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;</div><div class="line"><a name="l00460"></a><span class="lineno"><a class="line" href="group__spi.html#ga740215d83c1238818dfd4689163f71de">  460</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code" href="group__spi.html#ga740215d83c1238818dfd4689163f71de">SPI_GetDataRegisterAddress</a>(SPI_Type *base)</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;{</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_16BIT_TRANSFERS) &amp;&amp; FSL_FEATURE_SPI_16BIT_TRANSFERS</span></div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    <span class="keywordflow">return</span> (uint32_t)(&amp;(base-&gt;DL));</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    <span class="keywordflow">return</span> (uint32_t)(&amp;(base-&gt;D));</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FSL_FEATURE_SPI_16BIT_TRANSFERS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;}</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga3ebe045018782edb3624026795d6269a">SPI_MasterSetBaudRate</a>(SPI_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz);</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;</div><div class="line"><a name="l00495"></a><span class="lineno"><a class="line" href="group__spi.html#ga981b773ced8cc0df2493691842a14e05">  495</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga981b773ced8cc0df2493691842a14e05">SPI_SetMatchData</a>(SPI_Type *base, uint32_t matchData)</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;{</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_16BIT_TRANSFERS) &amp;&amp; FSL_FEATURE_SPI_16BIT_TRANSFERS</span></div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    base-&gt;ML = matchData &amp; 0xFFU;</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    base-&gt;MH = (matchData &gt;&gt; 8U) &amp; 0xFFU;</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    base-&gt;M = matchData;</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* FSL_FEATURE_SPI_16BIT_TRANSFERS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;}</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;<span class="preprocessor">#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;&amp; FSL_FEATURE_SPI_HAS_FIFO</span></div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga73f02aa76d813feff22fb3855105e023">SPI_EnableFIFO</a>(SPI_Type *base, <span class="keywordtype">bool</span> enable);</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#gae28a41ba015e3bc92936459f83500cd0">SPI_WriteBlocking</a>(SPI_Type *base, uint8_t *buffer, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga74d8732386a607c263bd16c8294b08d6">SPI_WriteData</a>(SPI_Type *base, uint16_t data);</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;uint16_t <a class="code" href="group__spi.html#gaf23d3779b122e78fc07562bf5dbf3ac3">SPI_ReadData</a>(SPI_Type *base);</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga6cf3e807307ecb22578cc9088adafcf2">SPI_MasterTransferCreateHandle</a>(SPI_Type *base,</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;                                    spi_master_handle_t *handle,</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;                                    <a class="code" href="group__spi.html#ga75d9df6e4614756d8ff1bd6f86ca2235">spi_master_callback_t</a> callback,</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;                                    <span class="keywordtype">void</span> *userData);</div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__spi.html#ga5b05095245ecf01258e64cc0458fb2e9">SPI_MasterTransferBlocking</a>(SPI_Type *base, <a class="code" href="group__spi.html#structspi__transfer__t">spi_transfer_t</a> *xfer);</div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;</div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__spi.html#ga820c78a32fa29735168d2e517f4881a1">SPI_MasterTransferNonBlocking</a>(SPI_Type *base, spi_master_handle_t *handle, <a class="code" href="group__spi.html#structspi__transfer__t">spi_transfer_t</a> *xfer);</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__spi.html#gabde0dccfb0783d103b9cf57e0202582f">SPI_MasterTransferGetCount</a>(SPI_Type *base, spi_master_handle_t *handle, <span class="keywordtype">size_t</span> *count);</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;</div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#gae90962a54978acf05ca7780489301eb4">SPI_MasterTransferAbort</a>(SPI_Type *base, spi_master_handle_t *handle);</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga645d041a92bde312d6cf64517c618c41">SPI_MasterTransferHandleIRQ</a>(SPI_Type *base, spi_master_handle_t *handle);</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;</div><div class="line"><a name="l00628"></a><span class="lineno"><a class="line" href="group__spi.html#ga7b96130e93f13360909634c8fd5989b2">  628</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#ga7b96130e93f13360909634c8fd5989b2">SPI_SlaveTransferCreateHandle</a>(SPI_Type *base,</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;                                                 <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a> *handle,</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;                                                 <a class="code" href="group__spi.html#ga13fbc3110c56c1d312e4a5ebed07d679">spi_slave_callback_t</a> callback,</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;                                                 <span class="keywordtype">void</span> *userData)</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;{</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    <a class="code" href="group__spi.html#ga6cf3e807307ecb22578cc9088adafcf2">SPI_MasterTransferCreateHandle</a>(base, handle, callback, userData);</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;}</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;</div><div class="line"><a name="l00653"></a><span class="lineno"><a class="line" href="group__spi.html#gae37917cb354e36acd1b1ca906d2ffe1c">  653</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__spi.html#gae37917cb354e36acd1b1ca906d2ffe1c">SPI_SlaveTransferNonBlocking</a>(SPI_Type *base, <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a> *handle, <a class="code" href="group__spi.html#structspi__transfer__t">spi_transfer_t</a> *xfer)</div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;{</div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__spi.html#ga820c78a32fa29735168d2e517f4881a1">SPI_MasterTransferNonBlocking</a>(base, handle, xfer);</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;}</div><div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;</div><div class="line"><a name="l00667"></a><span class="lineno"><a class="line" href="group__spi.html#ga0dcd2ed8373d992ff93bb500e1442815">  667</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__spi.html#ga0dcd2ed8373d992ff93bb500e1442815">SPI_SlaveTransferGetCount</a>(SPI_Type *base, <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a> *handle, <span class="keywordtype">size_t</span> *count)</div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;{</div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__spi.html#gabde0dccfb0783d103b9cf57e0202582f">SPI_MasterTransferGetCount</a>(base, handle, count);</div><div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;}</div><div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;</div><div class="line"><a name="l00678"></a><span class="lineno"><a class="line" href="group__spi.html#gae719048431a3e4fb334f83bd824a407b">  678</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#gae719048431a3e4fb334f83bd824a407b">SPI_SlaveTransferAbort</a>(SPI_Type *base, <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a> *handle)</div><div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;{</div><div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;    <a class="code" href="group__spi.html#gae90962a54978acf05ca7780489301eb4">SPI_MasterTransferAbort</a>(base, handle);</div><div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;}</div><div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;</div><div class="line"><a name="l00689"></a><span class="lineno"><a class="line" href="group__spi.html#gabf454f42532e8a41340efd398f9868fb">  689</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__spi.html#gabf454f42532e8a41340efd398f9868fb">SPI_SlaveTransferHandleIRQ</a>(SPI_Type *base, <a class="code" href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a> *handle)</div><div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;{</div><div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    <a class="code" href="group__spi.html#ga645d041a92bde312d6cf64517c618c41">SPI_MasterTransferHandleIRQ</a>(base, handle);</div><div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;}</div><div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;}</div><div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;</div><div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _FSL_SPI_H_*/</span><span class="preprocessor"></span></div><div class="ttc" id="group__spi_html_a9189d8f6438ba99548837da162213c46"><div class="ttname"><a href="group__spi.html#a9189d8f6438ba99548837da162213c46">spi_slave_config_t::enableSlave</a></div><div class="ttdeci">bool enableSlave</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:195</div></div>
<div class="ttc" id="group__spi_html_gaedd690a0f91a0a9eb0fd573b57e31f67"><div class="ttname"><a href="group__spi.html#gaedd690a0f91a0a9eb0fd573b57e31f67">_spi_interrupt_enable</a></div><div class="ttdeci">_spi_interrupt_enable</div><div class="ttdoc">SPI interrupt sources. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:106</div></div>
<div class="ttc" id="group__spi_html_ab8b96ba3ced8b280ac1f366f6e76a9e7"><div class="ttname"><a href="group__spi.html#ab8b96ba3ced8b280ac1f366f6e76a9e7">spi_master_config_t::enableMaster</a></div><div class="ttdeci">bool enableMaster</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:174</div></div>
<div class="ttc" id="group__spi_html_gae28a41ba015e3bc92936459f83500cd0"><div class="ttname"><a href="group__spi.html#gae28a41ba015e3bc92936459f83500cd0">SPI_WriteBlocking</a></div><div class="ttdeci">void SPI_WriteBlocking(SPI_Type *base, uint8_t *buffer, size_t size)</div><div class="ttdoc">Sends a buffer of data bytes in blocking way. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:536</div></div>
<div class="ttc" id="group__spi_html_ga0dcd2ed8373d992ff93bb500e1442815"><div class="ttname"><a href="group__spi.html#ga0dcd2ed8373d992ff93bb500e1442815">SPI_SlaveTransferGetCount</a></div><div class="ttdeci">static status_t SPI_SlaveTransferGetCount(SPI_Type *base, spi_slave_handle_t *handle, size_t *count)</div><div class="ttdoc">Get the bytes of SPI Interrupt transferred. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:667</div></div>
<div class="ttc" id="group__spi_html_gaf23d3779b122e78fc07562bf5dbf3ac3"><div class="ttname"><a href="group__spi.html#gaf23d3779b122e78fc07562bf5dbf3ac3">SPI_ReadData</a></div><div class="ttdeci">uint16_t SPI_ReadData(SPI_Type *base)</div><div class="ttdoc">Get a data from SPI data register. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:584</div></div>
<div class="ttc" id="group__spi_html_ab4b6047acff1c6e74f90b6e75492295a"><div class="ttname"><a href="group__spi.html#ab4b6047acff1c6e74f90b6e75492295a">spi_master_config_t::txWatermark</a></div><div class="ttdeci">spi_txfifo_watermark_t txWatermark</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:184</div></div>
<div class="ttc" id="group__spi_html_gaea776f478792865a85b7311e6ff5896c"><div class="ttname"><a href="group__spi.html#gaea776f478792865a85b7311e6ff5896c">_spi_flags</a></div><div class="ttdeci">_spi_flags</div><div class="ttdoc">SPI status flags. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:118</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896cab1d47ff1dc06aa27a41cf90715f203aa"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896cab1d47ff1dc06aa27a41cf90715f203aa">kSPI_TxFifoError</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:129</div></div>
<div class="ttc" id="group__spi_html_ga74d8732386a607c263bd16c8294b08d6"><div class="ttname"><a href="group__spi.html#ga74d8732386a607c263bd16c8294b08d6">SPI_WriteData</a></div><div class="ttdeci">void SPI_WriteData(SPI_Type *base, uint16_t data)</div><div class="ttdoc">Write a data into SPI data register. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:574</div></div>
<div class="ttc" id="group__spi_html_ga9a479127a2051ded7945115657adc162"><div class="ttname"><a href="group__spi.html#ga9a479127a2051ded7945115657adc162">spi_txfifo_watermark_t</a></div><div class="ttdeci">spi_txfifo_watermark_t</div><div class="ttdoc">SPI TX FIFO watermark settings. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:147</div></div>
<div class="ttc" id="group__spi_html_ga9ad313685ade497f5cbcb71c74a1b4dc"><div class="ttname"><a href="group__spi.html#ga9ad313685ade497f5cbcb71c74a1b4dc">spi_clock_phase_t</a></div><div class="ttdeci">spi_clock_phase_t</div><div class="ttdoc">SPI clock phase configuration. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:65</div></div>
<div class="ttc" id="group__spi_html_ga6cf3e807307ecb22578cc9088adafcf2"><div class="ttname"><a href="group__spi.html#ga6cf3e807307ecb22578cc9088adafcf2">SPI_MasterTransferCreateHandle</a></div><div class="ttdeci">void SPI_MasterTransferCreateHandle(SPI_Type *base, spi_master_handle_t *handle, spi_master_callback_t callback, void *userData)</div><div class="ttdoc">Initialize the SPI master handle. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:658</div></div>
<div class="ttc" id="group__spi_html_gga9a479127a2051ded7945115657adc162a1460af596f3d1a6a2bbedd9624975ed5"><div class="ttname"><a href="group__spi.html#gga9a479127a2051ded7945115657adc162a1460af596f3d1a6a2bbedd9624975ed5">kSPI_TxFifoOneHalfEmpty</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:150</div></div>
<div class="ttc" id="group__spi_html_gad267cfee3a876b2860217ff94f03f574"><div class="ttname"><a href="group__spi.html#gad267cfee3a876b2860217ff94f03f574">spi_slave_handle_t</a></div><div class="ttdeci">spi_master_handle_t spi_slave_handle_t</div><div class="ttdoc">Slave handle is the same with master handle. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:222</div></div>
<div class="ttc" id="group__spi_html_ga8ab1fba361ce972e7e249ba1ea318e20"><div class="ttname"><a href="group__spi.html#ga8ab1fba361ce972e7e249ba1ea318e20">_spi_dma_enable_t</a></div><div class="ttdeci">_spi_dma_enable_t</div><div class="ttdoc">SPI dma source. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:163</div></div>
<div class="ttc" id="group__spi_html_ggaedd690a0f91a0a9eb0fd573b57e31f67a299b7d97e4106d57bf06a6654ce4f3dd"><div class="ttname"><a href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a299b7d97e4106d57bf06a6654ce4f3dd">kSPI_TxFifoNearEmptyInterruptEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:113</div></div>
<div class="ttc" id="group__spi_html_gga3fa79a6717ea4e1e74de2dadaa468edda2ff91d774e93aed936b87ffaa18aaf9e"><div class="ttname"><a href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda2ff91d774e93aed936b87ffaa18aaf9e">kStatus_SPI_Error</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:54</div></div>
<div class="ttc" id="group__spi_html_gaac0bc2b87ea2eb7eeba78d9449d4dbbf"><div class="ttname"><a href="group__spi.html#gaac0bc2b87ea2eb7eeba78d9449d4dbbf">SPI_Deinit</a></div><div class="ttdeci">void SPI_Deinit(SPI_Type *base)</div><div class="ttdoc">De-initialize SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:381</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca840b49c37a729e29d6c144650f31dc88"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca840b49c37a729e29d6c144650f31dc88">kSPI_RxFifoNearFullFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:125</div></div>
<div class="ttc" id="group__spi_html_ga820c78a32fa29735168d2e517f4881a1"><div class="ttname"><a href="group__spi.html#ga820c78a32fa29735168d2e517f4881a1">SPI_MasterTransferNonBlocking</a></div><div class="ttdeci">status_t SPI_MasterTransferNonBlocking(SPI_Type *base, spi_master_handle_t *handle, spi_transfer_t *xfer)</div><div class="ttdoc">Performs a non-blocking SPI interrupt transfer. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:707</div></div>
<div class="ttc" id="group__spi_html_gga9a479127a2051ded7945115657adc162a9349658226a7cb7eb0629ae38853030d"><div class="ttname"><a href="group__spi.html#gga9a479127a2051ded7945115657adc162a9349658226a7cb7eb0629ae38853030d">kSPI_TxFifoOneFourthEmpty</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:149</div></div>
<div class="ttc" id="group__spi_html_ggad61329dc7edac1f4ef75e0746e08b3d1ac5358e4b6907d9db9ec2eb5122f1e15c"><div class="ttname"><a href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1ac5358e4b6907d9db9ec2eb5122f1e15c">kSPI_TxNearEmptyClearInterrupt</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:143</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca9c24fe83960ed64638f06eeb17643da5"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca9c24fe83960ed64638f06eeb17643da5">kSPI_MatchFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:121</div></div>
<div class="ttc" id="group__spi_html_structspi__transfer__t"><div class="ttname"><a href="group__spi.html#structspi__transfer__t">spi_transfer_t</a></div><div class="ttdoc">SPI transfer structure. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:211</div></div>
<div class="ttc" id="group__spi_html_gga9ad313685ade497f5cbcb71c74a1b4dcad15d61c6fd642f13101edbf401d0c72e"><div class="ttname"><a href="group__spi.html#gga9ad313685ade497f5cbcb71c74a1b4dcad15d61c6fd642f13101edbf401d0c72e">kSPI_ClockPhaseFirstEdge</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:67</div></div>
<div class="ttc" id="group__spi_html_aa58335de5bfa8923228432b62ea9308a"><div class="ttname"><a href="group__spi.html#aa58335de5bfa8923228432b62ea9308a">_spi_master_handle::rxData</a></div><div class="ttdeci">uint8_t *volatile rxData</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:234</div></div>
<div class="ttc" id="group__spi_html_gga3e5a7cd043c9596779bc23b34cb3d1f9acfc8257079c9604086622df6de326aea"><div class="ttname"><a href="group__spi.html#gga3e5a7cd043c9596779bc23b34cb3d1f9acfc8257079c9604086622df6de326aea">kSPI_ClockPolarityActiveLow</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:61</div></div>
<div class="ttc" id="group__spi_html_ggaa7bfe75c1f0ea3b349f19a3de19b24e4a740c43589ebe839f3adc77b8ca484ea4"><div class="ttname"><a href="group__spi.html#ggaa7bfe75c1f0ea3b349f19a3de19b24e4a740c43589ebe839f3adc77b8ca484ea4">kSPI_16BitMode</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:102</div></div>
<div class="ttc" id="group__spi_html_gga8ab1fba361ce972e7e249ba1ea318e20aa157e1fb5d95f1488f6f03fb4baaa7f2"><div class="ttname"><a href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20aa157e1fb5d95f1488f6f03fb4baaa7f2">kSPI_DmaAllEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:167</div></div>
<div class="ttc" id="group__spi_html_a91e259e32d8fb8a07db35bb933c2b6a4"><div class="ttname"><a href="group__spi.html#a91e259e32d8fb8a07db35bb933c2b6a4">_spi_master_handle::bytePerFrame</a></div><div class="ttdeci">uint8_t bytePerFrame</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:239</div></div>
<div class="ttc" id="group__spi_html_ggaa7bfe75c1f0ea3b349f19a3de19b24e4a1a0723fd8cd73f361ca2770ad74a6324"><div class="ttname"><a href="group__spi.html#ggaa7bfe75c1f0ea3b349f19a3de19b24e4a1a0723fd8cd73f361ca2770ad74a6324">kSPI_8BitMode</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:101</div></div>
<div class="ttc" id="group__spi_html_ga1c3de83156f45d3f91540a1ec5f92826"><div class="ttname"><a href="group__spi.html#ga1c3de83156f45d3f91540a1ec5f92826">SPI_DisableInterrupts</a></div><div class="ttdeci">void SPI_DisableInterrupts(SPI_Type *base, uint32_t mask)</div><div class="ttdoc">Disable interrupt for SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:445</div></div>
<div class="ttc" id="group__spi_html_af7cf10baeb58ef18f8d18ef7022d43d8"><div class="ttname"><a href="group__spi.html#af7cf10baeb58ef18f8d18ef7022d43d8">spi_master_config_t::phase</a></div><div class="ttdeci">spi_clock_phase_t phase</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:177</div></div>
<div class="ttc" id="group__spi_html_a3585201b190b39d2d702daa9192323a3"><div class="ttname"><a href="group__spi.html#a3585201b190b39d2d702daa9192323a3">_spi_master_handle::watermark</a></div><div class="ttdeci">uint8_t watermark</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:240</div></div>
<div class="ttc" id="group__spi_html_a03c054bb486fb65133eb9f6849266fb1"><div class="ttname"><a href="group__spi.html#a03c054bb486fb65133eb9f6849266fb1">spi_transfer_t::txData</a></div><div class="ttdeci">uint8_t * txData</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:213</div></div>
<div class="ttc" id="group__spi_html_ga3fe5b421b088cc98222b8a214069574b"><div class="ttname"><a href="group__spi.html#ga3fe5b421b088cc98222b8a214069574b">SPI_MasterInit</a></div><div class="ttdeci">void SPI_MasterInit(SPI_Type *base, const spi_master_config_t *config, uint32_t srcClock_Hz)</div><div class="ttdoc">Initialize SPI with master configuration. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:287</div></div>
<div class="ttc" id="group__spi_html_gad61329dc7edac1f4ef75e0746e08b3d1"><div class="ttname"><a href="group__spi.html#gad61329dc7edac1f4ef75e0746e08b3d1">spi_w1c_interrupt_t</a></div><div class="ttdeci">spi_w1c_interrupt_t</div><div class="ttdoc">SPI FIFO write-1-to-clear interrupt flags. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:138</div></div>
<div class="ttc" id="group__spi_html_gabf454f42532e8a41340efd398f9868fb"><div class="ttname"><a href="group__spi.html#gabf454f42532e8a41340efd398f9868fb">SPI_SlaveTransferHandleIRQ</a></div><div class="ttdeci">static void SPI_SlaveTransferHandleIRQ(SPI_Type *base, spi_slave_handle_t *handle)</div><div class="ttdoc">Interrupt handler for SPI slave. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:689</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca85cc9ec1f4395db09fc288e293e5dcb1"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca85cc9ec1f4395db09fc288e293e5dcb1">kSPI_TxFifoNearEmptyFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:126</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca553c7d65e38657565d1818fdfddd600e"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca553c7d65e38657565d1818fdfddd600e">kSPI_TxOverflow</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:131</div></div>
<div class="ttc" id="group__spi_html_a080452bbb72856f9fc2e834d6537d9ff"><div class="ttname"><a href="group__spi.html#a080452bbb72856f9fc2e834d6537d9ff">_spi_master_handle::callback</a></div><div class="ttdeci">spi_master_callback_t callback</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:241</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca1ad600ec61b202731d386c7abcb15feb"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca1ad600ec61b202731d386c7abcb15feb">kSPI_RxFifoFullFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:127</div></div>
<div class="ttc" id="group__ksdk__common_html_gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977"><div class="ttname"><a href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29a60c31c70600aff4f290ca2d790622977">kStatusGroup_SPI</a></div><div class="ttdef"><b>Definition:</b> fsl_common.h:79</div></div>
<div class="ttc" id="group__spi_html_af7e84b7c37b316924205ce9d9f0ec685"><div class="ttname"><a href="group__spi.html#af7e84b7c37b316924205ce9d9f0ec685">spi_master_config_t::enableFifoInterruptClear</a></div><div class="ttdeci">bool enableFifoInterruptClear</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:183</div></div>
<div class="ttc" id="group__spi_html_structspi__slave__config__t"><div class="ttname"><a href="group__spi.html#structspi__slave__config__t">spi_slave_config_t</a></div><div class="ttdoc">SPI slave user configure structure. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:193</div></div>
<div class="ttc" id="group__spi_html_ggaedd690a0f91a0a9eb0fd573b57e31f67a95cc9167ada10046534dc22549c6a99e"><div class="ttname"><a href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a95cc9167ada10046534dc22549c6a99e">kSPI_MatchInterruptEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:110</div></div>
<div class="ttc" id="group__spi_html_a773b39d480759f67926cb18ae2219281"><div class="ttname"><a href="group__spi.html#a773b39d480759f67926cb18ae2219281">spi_transfer_t::flags</a></div><div class="ttdeci">uint32_t flags</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:216</div></div>
<div class="ttc" id="group__spi_html_ga3e5a7cd043c9596779bc23b34cb3d1f9"><div class="ttname"><a href="group__spi.html#ga3e5a7cd043c9596779bc23b34cb3d1f9">spi_clock_polarity_t</a></div><div class="ttdeci">spi_clock_polarity_t</div><div class="ttdoc">SPI clock polarity configuration. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:58</div></div>
<div class="ttc" id="group__spi_html_gga3fa79a6717ea4e1e74de2dadaa468edda703abdf7900047c4d13536480f3463ab"><div class="ttname"><a href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda703abdf7900047c4d13536480f3463ab">kStatus_SPI_Busy</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:52</div></div>
<div class="ttc" id="group__spi_html_gga79f862820ec2bcbb8184ce9de72949a6aa10222f6949d379dfaf8f408bbb87c42"><div class="ttname"><a href="group__spi.html#gga79f862820ec2bcbb8184ce9de72949a6aa10222f6949d379dfaf8f408bbb87c42">kSPI_RxFifoOneHalfFull</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:157</div></div>
<div class="ttc" id="group__spi_html_ga57d32103b22e375efde0d1a392f125ea"><div class="ttname"><a href="group__spi.html#ga57d32103b22e375efde0d1a392f125ea">SPI_ClearInterrupt</a></div><div class="ttdeci">static void SPI_ClearInterrupt(SPI_Type *base, uint32_t mask)</div><div class="ttdoc">Clear the interrupt if enable INCTLR. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:385</div></div>
<div class="ttc" id="group__spi_html_gac000b63ed033f57a9eee342a8c8e67f2"><div class="ttname"><a href="group__spi.html#gac000b63ed033f57a9eee342a8c8e67f2">SPI_SlaveGetDefaultConfig</a></div><div class="ttdeci">void SPI_SlaveGetDefaultConfig(spi_slave_config_t *config)</div><div class="ttdoc">Set the SPI slave configuration structure to default values. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:328</div></div>
<div class="ttc" id="group__spi_html_ggad61329dc7edac1f4ef75e0746e08b3d1af3a8b77f84cf2406ed1365e02e74fa8a"><div class="ttname"><a href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1af3a8b77f84cf2406ed1365e02e74fa8a">kSPI_RxNearFullClearInterrupt</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:142</div></div>
<div class="ttc" id="group__spi_html_struct__spi__master__handle"><div class="ttname"><a href="group__spi.html#struct__spi__master__handle">_spi_master_handle</a></div><div class="ttdoc">SPI transfer handle structure. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:231</div></div>
<div class="ttc" id="group__spi_html_ggaa68518c16202382c2e1f1c7c66a9d53dae7b997e8cff761aab865cbd42c4c3989"><div class="ttname"><a href="group__spi.html#ggaa68518c16202382c2e1f1c7c66a9d53dae7b997e8cff761aab865cbd42c4c3989">kSPI_MsbFirst</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:76</div></div>
<div class="ttc" id="group__spi_html_a554cc5b5619072f7256a7f7cc1f2bcdb"><div class="ttname"><a href="group__spi.html#a554cc5b5619072f7256a7f7cc1f2bcdb">_spi_master_handle::txRemainingBytes</a></div><div class="ttdeci">volatile size_t txRemainingBytes</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:235</div></div>
<div class="ttc" id="group__spi_html_gga3fa79a6717ea4e1e74de2dadaa468edda4e32c5b06dccaf4b81e2fd1679e1b560"><div class="ttname"><a href="group__spi.html#gga3fa79a6717ea4e1e74de2dadaa468edda4e32c5b06dccaf4b81e2fd1679e1b560">kStatus_SPI_Idle</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:53</div></div>
<div class="ttc" id="group__spi_html_ad5743b187f5dda0c1786a192ba11b043"><div class="ttname"><a href="group__spi.html#ad5743b187f5dda0c1786a192ba11b043">spi_master_config_t::polarity</a></div><div class="ttdeci">spi_clock_polarity_t polarity</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:176</div></div>
<div class="ttc" id="group__spi_html_a47e491dc6b16e7a86f4396620f4bb704"><div class="ttname"><a href="group__spi.html#a47e491dc6b16e7a86f4396620f4bb704">_spi_master_handle::state</a></div><div class="ttdeci">volatile uint32_t state</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:237</div></div>
<div class="ttc" id="group__spi_html_a285cf929f1817b37a10f2afffc810ac8"><div class="ttname"><a href="group__spi.html#a285cf929f1817b37a10f2afffc810ac8">spi_master_config_t::outputMode</a></div><div class="ttdeci">spi_ss_output_mode_t outputMode</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:187</div></div>
<div class="ttc" id="group__spi_html_gga2e5a238c65f35a2d82cc1c55927030fea3825177650b5d4bfb5dc603f0ce41381"><div class="ttname"><a href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030fea3825177650b5d4bfb5dc603f0ce41381">kSPI_SlaveSelectAsGpio</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:83</div></div>
<div class="ttc" id="group__spi_html_gga8ab1fba361ce972e7e249ba1ea318e20a0addd2d49971cb0f0caa057510f5d9f1"><div class="ttname"><a href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20a0addd2d49971cb0f0caa057510f5d9f1">kSPI_RxDmaEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:166</div></div>
<div class="ttc" id="group__spi_html_a9b8027e0bd0a21915f56155fdc08c5fc"><div class="ttname"><a href="group__spi.html#a9b8027e0bd0a21915f56155fdc08c5fc">spi_master_config_t::enableStopInWaitMode</a></div><div class="ttdeci">bool enableStopInWaitMode</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:175</div></div>
<div class="ttc" id="group__spi_html_gae37917cb354e36acd1b1ca906d2ffe1c"><div class="ttname"><a href="group__spi.html#gae37917cb354e36acd1b1ca906d2ffe1c">SPI_SlaveTransferNonBlocking</a></div><div class="ttdeci">static status_t SPI_SlaveTransferNonBlocking(SPI_Type *base, spi_slave_handle_t *handle, spi_transfer_t *xfer)</div><div class="ttdoc">Performs a non-blocking SPI slave interrupt transfer. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:653</div></div>
<div class="ttc" id="group__spi_html_ga13fbc3110c56c1d312e4a5ebed07d679"><div class="ttname"><a href="group__spi.html#ga13fbc3110c56c1d312e4a5ebed07d679">spi_slave_callback_t</a></div><div class="ttdeci">void(* spi_slave_callback_t)(SPI_Type *base, spi_slave_handle_t *handle, status_t status, void *userData)</div><div class="ttdoc">SPI master callback for finished transmit. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:228</div></div>
<div class="ttc" id="group__spi_html_ga75d9df6e4614756d8ff1bd6f86ca2235"><div class="ttname"><a href="group__spi.html#ga75d9df6e4614756d8ff1bd6f86ca2235">spi_master_callback_t</a></div><div class="ttdeci">void(* spi_master_callback_t)(SPI_Type *base, spi_master_handle_t *handle, status_t status, void *userData)</div><div class="ttdoc">SPI master callback for finished transmit. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:225</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca92f9ace674410eacc7f5a1bdbbdac23c"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca92f9ace674410eacc7f5a1bdbbdac23c">kSPI_RxOverflow</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:132</div></div>
<div class="ttc" id="group__spi_html_a0190e6775edf2ecbae497859f514760f"><div class="ttname"><a href="group__spi.html#a0190e6775edf2ecbae497859f514760f">spi_master_config_t::rxWatermark</a></div><div class="ttdeci">spi_rxfifo_watermark_t rxWatermark</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:185</div></div>
<div class="ttc" id="group__spi_html_ggab55fee4d636428392047e3355f33a36fad778c9cc9e3d5a5c4e8061793cf50fdc"><div class="ttname"><a href="group__spi.html#ggab55fee4d636428392047e3355f33a36fad778c9cc9e3d5a5c4e8061793cf50fdc">kSPI_PinModeInput</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:92</div></div>
<div class="ttc" id="group__spi_html_gaa68518c16202382c2e1f1c7c66a9d53d"><div class="ttname"><a href="group__spi.html#gaa68518c16202382c2e1f1c7c66a9d53d">spi_shift_direction_t</a></div><div class="ttdeci">spi_shift_direction_t</div><div class="ttdoc">SPI data shifter direction options. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:74</div></div>
<div class="ttc" id="group__spi_html_ga2e5a238c65f35a2d82cc1c55927030fe"><div class="ttname"><a href="group__spi.html#ga2e5a238c65f35a2d82cc1c55927030fe">spi_ss_output_mode_t</a></div><div class="ttdeci">spi_ss_output_mode_t</div><div class="ttdoc">SPI slave select output mode options. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:81</div></div>
<div class="ttc" id="group__spi_html_ga552ce373bfe655a37a22c26fdb071e0b"><div class="ttname"><a href="group__spi.html#ga552ce373bfe655a37a22c26fdb071e0b">SPI_EnableDMA</a></div><div class="ttdeci">static void SPI_EnableDMA(SPI_Type *base, uint32_t mask, bool enable)</div><div class="ttdoc">Enable dma source for SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:439</div></div>
<div class="ttc" id="group__spi_html_gac12d144816080c40ca86d762e31aacc4"><div class="ttname"><a href="group__spi.html#gac12d144816080c40ca86d762e31aacc4">SPI_EnableInterrupts</a></div><div class="ttdeci">void SPI_EnableInterrupts(SPI_Type *base, uint32_t mask)</div><div class="ttdoc">Enable interrupt for SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:406</div></div>
<div class="ttc" id="group__spi_html_gga79f862820ec2bcbb8184ce9de72949a6ad045f28c12abb7d7c9c69f067d03efb2"><div class="ttname"><a href="group__spi.html#gga79f862820ec2bcbb8184ce9de72949a6ad045f28c12abb7d7c9c69f067d03efb2">kSPI_RxFifoThreeFourthsFull</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:156</div></div>
<div class="ttc" id="group__spi_html_gae719048431a3e4fb334f83bd824a407b"><div class="ttname"><a href="group__spi.html#gae719048431a3e4fb334f83bd824a407b">SPI_SlaveTransferAbort</a></div><div class="ttdeci">static void SPI_SlaveTransferAbort(SPI_Type *base, spi_slave_handle_t *handle)</div><div class="ttdoc">Abort a SPI slave transfer using interrupt. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:678</div></div>
<div class="ttc" id="group__spi_html_gga2e5a238c65f35a2d82cc1c55927030fead724fc04589d03b524ef2dfef6b0f4a1"><div class="ttname"><a href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030fead724fc04589d03b524ef2dfef6b0f4a1">kSPI_SlaveSelectAutomaticOutput</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:85</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca275d9a4cd902b8cb484c4b00635a3060"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca275d9a4cd902b8cb484c4b00635a3060">kSPI_TxFifoEmptyFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:128</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896cacc0e5c67e296cc20197afaca46f22953"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896cacc0e5c67e296cc20197afaca46f22953">kSPI_RxBufferFullFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:120</div></div>
<div class="ttc" id="group__spi_html_gga9ad313685ade497f5cbcb71c74a1b4dca18a98985c1f7dd56175e4a2724db3675"><div class="ttname"><a href="group__spi.html#gga9ad313685ade497f5cbcb71c74a1b4dca18a98985c1f7dd56175e4a2724db3675">kSPI_ClockPhaseSecondEdge</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:69</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca07934a27954d951831e7cdb96c39afd7"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca07934a27954d951831e7cdb96c39afd7">kSPI_TxBufferEmptyFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:122</div></div>
<div class="ttc" id="group__spi_html_aa7189218ccadddcc71ad7de6b758f01a"><div class="ttname"><a href="group__spi.html#aa7189218ccadddcc71ad7de6b758f01a">_spi_master_handle::rxRemainingBytes</a></div><div class="ttdeci">volatile size_t rxRemainingBytes</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:236</div></div>
<div class="ttc" id="group__spi_html_ga981b773ced8cc0df2493691842a14e05"><div class="ttname"><a href="group__spi.html#ga981b773ced8cc0df2493691842a14e05">SPI_SetMatchData</a></div><div class="ttdeci">static void SPI_SetMatchData(SPI_Type *base, uint32_t matchData)</div><div class="ttdoc">Set match data for SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:495</div></div>
<div class="ttc" id="group__spi_html_ga5b05095245ecf01258e64cc0458fb2e9"><div class="ttname"><a href="group__spi.html#ga5b05095245ecf01258e64cc0458fb2e9">SPI_MasterTransferBlocking</a></div><div class="ttdeci">status_t SPI_MasterTransferBlocking(SPI_Type *base, spi_transfer_t *xfer)</div><div class="ttdoc">Transfer a block of data in polling way. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:596</div></div>
<div class="ttc" id="group__spi_html_ggab55fee4d636428392047e3355f33a36fad5b79c8eba688dbfb4b9973348521de7"><div class="ttname"><a href="group__spi.html#ggab55fee4d636428392047e3355f33a36fad5b79c8eba688dbfb4b9973348521de7">kSPI_PinModeOutput</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:94</div></div>
<div class="ttc" id="group__spi_html_gaaa5a317a68b409dfe20397b45e48d1f0"><div class="ttname"><a href="group__spi.html#gaaa5a317a68b409dfe20397b45e48d1f0">SPI_GetStatusFlags</a></div><div class="ttdeci">uint32_t SPI_GetStatusFlags(SPI_Type *base)</div><div class="ttdoc">Get the status flag. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:390</div></div>
<div class="ttc" id="group__spi_html_ga45c08fc078ae334b79fb844379140838"><div class="ttname"><a href="group__spi.html#ga45c08fc078ae334b79fb844379140838">SPI_MasterGetDefaultConfig</a></div><div class="ttdeci">void SPI_MasterGetDefaultConfig(spi_master_config_t *config)</div><div class="ttdoc">Set the SPI master configuration structure to default values. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:265</div></div>
<div class="ttc" id="group__spi_html_ggaedd690a0f91a0a9eb0fd573b57e31f67a081a753d8d51b97b289103c698703537"><div class="ttname"><a href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67a081a753d8d51b97b289103c698703537">kSPI_RxFifoNearFullInterruptEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:112</div></div>
<div class="ttc" id="group__spi_html_gaae5df847701d3171c2e6787b33e2f1ed"><div class="ttname"><a href="group__spi.html#gaae5df847701d3171c2e6787b33e2f1ed">SPI_Enable</a></div><div class="ttdeci">static void SPI_Enable(I2C_Type *base, bool enable)</div><div class="ttdoc">Enable or disables the SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:346</div></div>
<div class="ttc" id="group__spi_html_ab56d8f300582ce9d7f4a79729124739d"><div class="ttname"><a href="group__spi.html#ab56d8f300582ce9d7f4a79729124739d">_spi_master_handle::txData</a></div><div class="ttdeci">uint8_t *volatile txData</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:233</div></div>
<div class="ttc" id="group__spi_html_ae8f40fc982ba997f08e6a1fe1fe8fd8c"><div class="ttname"><a href="group__spi.html#ae8f40fc982ba997f08e6a1fe1fe8fd8c">spi_master_config_t::direction</a></div><div class="ttdeci">spi_shift_direction_t direction</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:178</div></div>
<div class="ttc" id="group__spi_html_a78f9703861dd365a513c2c5aab9f9239"><div class="ttname"><a href="group__spi.html#a78f9703861dd365a513c2c5aab9f9239">spi_transfer_t::dataSize</a></div><div class="ttdeci">size_t dataSize</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:215</div></div>
<div class="ttc" id="group__spi_html_ggaedd690a0f91a0a9eb0fd573b57e31f67abe157750a1660d839a66197c56ac5096"><div class="ttname"><a href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67abe157750a1660d839a66197c56ac5096">kSPI_TxEmptyInterruptEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:109</div></div>
<div class="ttc" id="group__spi_html_aa5df547b4cb95d3c959373cf6fa672b5"><div class="ttname"><a href="group__spi.html#aa5df547b4cb95d3c959373cf6fa672b5">spi_master_config_t::baudRate_Bps</a></div><div class="ttdeci">uint32_t baudRate_Bps</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:189</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca46b6a3bffe664d731bfbfa38f24a5797"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca46b6a3bffe664d731bfbfa38f24a5797">kSPI_RxFifoError</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:130</div></div>
<div class="ttc" id="group__spi_html_gabde0dccfb0783d103b9cf57e0202582f"><div class="ttname"><a href="group__spi.html#gabde0dccfb0783d103b9cf57e0202582f">SPI_MasterTransferGetCount</a></div><div class="ttdeci">status_t SPI_MasterTransferGetCount(SPI_Type *base, spi_master_handle_t *handle, size_t *count)</div><div class="ttdoc">Get the bytes of SPI Interrupt transferred. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:758</div></div>
<div class="ttc" id="group__spi_html_ga740215d83c1238818dfd4689163f71de"><div class="ttname"><a href="group__spi.html#ga740215d83c1238818dfd4689163f71de">SPI_GetDataRegisterAddress</a></div><div class="ttdeci">static uint32_t SPI_GetDataRegisterAddress(SPI_Type *base)</div><div class="ttdoc">Get SPI tx/rx data register address. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:460</div></div>
<div class="ttc" id="group__spi_html_ga91b214b5392fc8d5b73a5ebadc5ca363"><div class="ttname"><a href="group__spi.html#ga91b214b5392fc8d5b73a5ebadc5ca363">SPI_SlaveInit</a></div><div class="ttdeci">void SPI_SlaveInit(SPI_Type *base, const spi_slave_config_t *config)</div><div class="ttdoc">Initialize SPI with slave configuration. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:346</div></div>
<div class="ttc" id="group__spi_html_structspi__master__config__t"><div class="ttname"><a href="group__spi.html#structspi__master__config__t">spi_master_config_t</a></div><div class="ttdoc">SPI master user configure structure. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:172</div></div>
<div class="ttc" id="group__spi_html_gaa7bfe75c1f0ea3b349f19a3de19b24e4"><div class="ttname"><a href="group__spi.html#gaa7bfe75c1f0ea3b349f19a3de19b24e4">spi_data_bitcount_mode_t</a></div><div class="ttdeci">spi_data_bitcount_mode_t</div><div class="ttdoc">SPI data length mode options. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:99</div></div>
<div class="ttc" id="group__spi_html_ac19bf21df94096b28f0cf83f277a91b0"><div class="ttname"><a href="group__spi.html#ac19bf21df94096b28f0cf83f277a91b0">spi_master_config_t::dataMode</a></div><div class="ttdeci">spi_data_bitcount_mode_t dataMode</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:180</div></div>
<div class="ttc" id="group__spi_html_ga3fa79a6717ea4e1e74de2dadaa468edd"><div class="ttname"><a href="group__spi.html#ga3fa79a6717ea4e1e74de2dadaa468edd">_spi_status</a></div><div class="ttdeci">_spi_status</div><div class="ttdoc">Return status for the SPI driver. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:50</div></div>
<div class="ttc" id="group__spi_html_ga73f02aa76d813feff22fb3855105e023"><div class="ttname"><a href="group__spi.html#ga73f02aa76d813feff22fb3855105e023">SPI_EnableFIFO</a></div><div class="ttdeci">void SPI_EnableFIFO(SPI_Type *base, bool enable)</div><div class="ttdoc">Enable or Disable FIFO if there is FIFO. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:558</div></div>
<div class="ttc" id="group__spi_html_ga7b96130e93f13360909634c8fd5989b2"><div class="ttname"><a href="group__spi.html#ga7b96130e93f13360909634c8fd5989b2">SPI_SlaveTransferCreateHandle</a></div><div class="ttdeci">static void SPI_SlaveTransferCreateHandle(SPI_Type *base, spi_slave_handle_t *handle, spi_slave_callback_t callback, void *userData)</div><div class="ttdoc">Initialize the SPI slave handle. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:628</div></div>
<div class="ttc" id="group__spi_html_gab55fee4d636428392047e3355f33a36f"><div class="ttname"><a href="group__spi.html#gab55fee4d636428392047e3355f33a36f">spi_pin_mode_t</a></div><div class="ttdeci">spi_pin_mode_t</div><div class="ttdoc">SPI pin mode options. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:89</div></div>
<div class="ttc" id="group__spi_html_ab929baca49507045ca23069da9bbe3ba"><div class="ttname"><a href="group__spi.html#ab929baca49507045ca23069da9bbe3ba">spi_master_config_t::pinMode</a></div><div class="ttdeci">spi_pin_mode_t pinMode</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:188</div></div>
<div class="ttc" id="group__spi_html_ab83c0e07099df7beb8e491cb91914de0"><div class="ttname"><a href="group__spi.html#ab83c0e07099df7beb8e491cb91914de0">spi_transfer_t::rxData</a></div><div class="ttdeci">uint8_t * rxData</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:214</div></div>
<div class="ttc" id="group__spi_html_ga645d041a92bde312d6cf64517c618c41"><div class="ttname"><a href="group__spi.html#ga645d041a92bde312d6cf64517c618c41">SPI_MasterTransferHandleIRQ</a></div><div class="ttdeci">void SPI_MasterTransferHandleIRQ(SPI_Type *base, spi_master_handle_t *handle)</div><div class="ttdoc">Interrupt handler for SPI. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:810</div></div>
<div class="ttc" id="group__spi_html_a2e294dd14122c554baa0665072b4ca7a"><div class="ttname"><a href="group__spi.html#a2e294dd14122c554baa0665072b4ca7a">_spi_master_handle::userData</a></div><div class="ttdeci">void * userData</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:242</div></div>
<div class="ttc" id="group__spi_html_gga2e5a238c65f35a2d82cc1c55927030feafdcbdc624d6c2f057147e2aa3cae4635"><div class="ttname"><a href="group__spi.html#gga2e5a238c65f35a2d82cc1c55927030feafdcbdc624d6c2f057147e2aa3cae4635">kSPI_SlaveSelectFaultInput</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:84</div></div>
<div class="ttc" id="group__spi_html_gga3e5a7cd043c9596779bc23b34cb3d1f9a031c0ee2693cf1fd621e8b8cba676629"><div class="ttname"><a href="group__spi.html#gga3e5a7cd043c9596779bc23b34cb3d1f9a031c0ee2693cf1fd621e8b8cba676629">kSPI_ClockPolarityActiveHigh</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:60</div></div>
<div class="ttc" id="group__spi_html_ggaa68518c16202382c2e1f1c7c66a9d53da20ac53684c3e1ad338553cecbfab94a9"><div class="ttname"><a href="group__spi.html#ggaa68518c16202382c2e1f1c7c66a9d53da20ac53684c3e1ad338553cecbfab94a9">kSPI_LsbFirst</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:77</div></div>
<div class="ttc" id="group__ksdk__common_html_gaaabdaf7ee58ca7269bd4bf24efcde092"><div class="ttname"><a href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a></div><div class="ttdeci">int32_t status_t</div><div class="ttdoc">Type used for all status and error return values. </div><div class="ttdef"><b>Definition:</b> fsl_common.h:121</div></div>
<div class="ttc" id="group__spi_html_ggaedd690a0f91a0a9eb0fd573b57e31f67aa317b77c827ed1462b766dddd93f7f10"><div class="ttname"><a href="group__spi.html#ggaedd690a0f91a0a9eb0fd573b57e31f67aa317b77c827ed1462b766dddd93f7f10">kSPI_RxFullAndModfInterruptEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:108</div></div>
<div class="ttc" id="group__spi_html_a10e6d1f095e525fa85ffe957081ed7a7"><div class="ttname"><a href="group__spi.html#a10e6d1f095e525fa85ffe957081ed7a7">_spi_master_handle::transferSize</a></div><div class="ttdeci">size_t transferSize</div><div class="ttdef"><b>Definition:</b> fsl_spi.h:238</div></div>
<div class="ttc" id="group__spi_html_ggad61329dc7edac1f4ef75e0746e08b3d1adc9f4730672a8501f0ae14b25f044567"><div class="ttname"><a href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1adc9f4730672a8501f0ae14b25f044567">kSPI_TxFifoEmptyClearInterrupt</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:141</div></div>
<div class="ttc" id="group__spi_html_ggaea776f478792865a85b7311e6ff5896ca9eca4e759c879e3b264d052c234a09d1"><div class="ttname"><a href="group__spi.html#ggaea776f478792865a85b7311e6ff5896ca9eca4e759c879e3b264d052c234a09d1">kSPI_ModeFaultFlag</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:123</div></div>
<div class="ttc" id="group__spi_html_ga79f862820ec2bcbb8184ce9de72949a6"><div class="ttname"><a href="group__spi.html#ga79f862820ec2bcbb8184ce9de72949a6">spi_rxfifo_watermark_t</a></div><div class="ttdeci">spi_rxfifo_watermark_t</div><div class="ttdoc">SPI RX FIFO watermark settings. </div><div class="ttdef"><b>Definition:</b> fsl_spi.h:154</div></div>
<div class="ttc" id="group__spi_html_ggab55fee4d636428392047e3355f33a36fa7ba3d5ffce8458f91a9594e7ffe2b32d"><div class="ttname"><a href="group__spi.html#ggab55fee4d636428392047e3355f33a36fa7ba3d5ffce8458f91a9594e7ffe2b32d">kSPI_PinModeNormal</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:91</div></div>
<div class="ttc" id="group__spi_html_ga3ebe045018782edb3624026795d6269a"><div class="ttname"><a href="group__spi.html#ga3ebe045018782edb3624026795d6269a">SPI_MasterSetBaudRate</a></div><div class="ttdeci">void SPI_MasterSetBaudRate(SPI_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)</div><div class="ttdoc">Set Baud rate for SPI transfer, this only used in master. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:483</div></div>
<div class="ttc" id="group__spi_html_ggad61329dc7edac1f4ef75e0746e08b3d1a1ee9a347a93f3a74a8c72786747f2a22"><div class="ttname"><a href="group__spi.html#ggad61329dc7edac1f4ef75e0746e08b3d1a1ee9a347a93f3a74a8c72786747f2a22">kSPI_RxFifoFullClearInterrupt</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:140</div></div>
<div class="ttc" id="group__spi_html_gga8ab1fba361ce972e7e249ba1ea318e20a0bbf1c58480329e906e2b80a05121cc5"><div class="ttname"><a href="group__spi.html#gga8ab1fba361ce972e7e249ba1ea318e20a0bbf1c58480329e906e2b80a05121cc5">kSPI_TxDmaEnable</a></div><div class="ttdef"><b>Definition:</b> fsl_spi.h:165</div></div>
<div class="ttc" id="group__spi_html_gae90962a54978acf05ca7780489301eb4"><div class="ttname"><a href="group__spi.html#gae90962a54978acf05ca7780489301eb4">SPI_MasterTransferAbort</a></div><div class="ttdeci">void SPI_MasterTransferAbort(SPI_Type *base, spi_master_handle_t *handle)</div><div class="ttdoc">Abort a SPI transfer using interrupt. </div><div class="ttdef"><b>Definition:</b> fsl_spi.c:784</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c718a368270b13c54d94892d20736f45.html">drivers</a></li><li class="navelem"><a class="el" href="dir_f8eb898658ad4368db76707c77b63002.html">spi</a></li><li class="navelem"><b>fsl_spi.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
